package com.example.discover.view

import android.content.res.Configuration
import com.example.featuresdk.view.ScreenConstraints

class LayoutConstraints: ScreenConstraints() {

    companion object{
        val instance = LayoutConstraints()

        fun init(configuration: Configuration): LayoutConstraints{
            synchronized(instance) {
                if (configuration.screenWidthDp != instance.screenWithDp) {
                    instance.init(configuration)
                }
            }
            return instance
        }
    }
}